async function atom(params) {
	const msg_type = params.type;
	const msg = params.msg;
	const result = await send_msg(msg_type, msg);
	return result;
}

const params = { "type": "dbacc.find.intranet", "msg": [{ "criteria": { "is_default": true }, "fields": { "retailer_store_no": 1 }, "page_no": 1, "page_size": 0, "query_mode": 1, "sort": {}, "spaceid": "boai", "sql": "", "systemid": "1094", "tablename": "store" }] };

const code = atom.toString();
if (require.main === module) {
	const iv = require('../dist/invoke');
	iv.default({ code, params }).then((rc) => {
		console.log(JSON.stringify(rc));
	}, (err) => {
		console.error(err);
	});
}